<div class="menu_and_carousel">
    <div class="container">
      <div class="col-xs-3 category-menu">
        <div class="menus">
          <div class="menus-tip">所有商品</div>
          <ul class="parent-menu">
            <% @categories.each do |category| %>
              <li>
                <div class="pull-right"><i class="fa fa-angle-right"></i></div>
                <%= category[0].try(:title) %>
                <div class="kid-menu">
                  <ul>
                    <% category[1].each do |item|%>
                    <li><a href="/products?category_id=<%= item.id %>"><%= item.try(:title) %></a></li>
                    <% end -%>
                  </ul>
                </div>
              </li>
            <% end -%>
          </ul>
        </div>
      </div>
      <div class="col-xs-offset-3 col-xs-9">
        <ul class="top-menu">
          <li><a href="">活动促销</a></li>
          <li><a href="/wiki">门窗百科</a></li>
          <li><a href="/designers">家装“设”团</a></li>
          <li><a href="">服务网点</a></li>
        </ul>
      </div>
    </div>

    <home-carousel></home-carousel>
</div>
